<template>
  <div style="width: 300px;height:  250px">
    <el-amap vid="amapDemo" :center="center" :zoom="zoom"
             :pitch="66">
      <el-amap-marker :position="position" :vid="index">
      </el-amap-marker>
    </el-amap>
  </div>
</template>

<script>
export default {
  name: "MyMap",
  props: {
    center: {
      type: Array,
      required: true,
    },
    zoom: {
      type: Number,
      default: 15,
    },
    position:{
      type:Array
    }
  }
}
</script>

<style scoped>

</style>
